﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace Qiang.Styles
{
    public class LineSymbol : FeatureSymbol, ILineSymbol
    {

        #region 初始化


        public LineSymbol()
        {
            _styles = new List<ILineStyle>();
            _styles.Add(new SimpleLineStyle());
        }


        #endregion


        #region 属性

        IList<ILineStyle> _styles;

        public new IList<ILineStyle> Styles
        {
            get { return _styles; }
            set { _styles = value; }
        }


        #endregion



        #region 方法

        /// <summary>
        /// 
        /// </summary>
        /// <param name="g"></param>
        /// <param name="path"></param>
        public void DrawPath(Graphics g,GraphicsPath path)
        {
            foreach (ILineStyle style in _styles)
            {
                style.DrawPath(g, path);
            }
        }

        #endregion

    }
}
